Don't leak cursor_hadjustment
authorMatthias Clasen <matthiasc@src.gnome.org>
Mon, 11 Jun 2007 03:51:31 +0000 (03:51 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 11 Jun 2007 03:51:31 +0000 (03:51 +0000)
svn path=/trunk/; revision=18099

ChangeLog
gtk/gtkentry.c

index b46f3607f06c8a8390941a8383e241d0927fefdf..57b91d4711ba61e9b5cad8e08e9ccd405e27abf7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-06-10  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_finalize): Don't leak cursor_hadjustment.
+
 2007-06-10  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/x11/gdkspawn-x11.c (set_environment): Handle child_setup
index 3673d87ea073ef987642689b16aa542ce64ac743..063822c8487a065fa18ed5009e5a717e45200d87 100644 (file)
@@ -1242,6 +1242,9 @@ gtk_entry_finalize (GObject *object)
       entry->text = NULL;
     }
 
+  if (priv->cursor_hadjustment)
+    g_object_unref (priv->cursor_hadjustment);
+
   G_OBJECT_CLASS (gtk_entry_parent_class)->finalize (object);
 }